package cn.tedu.store.feign;

import cn.tedu.store.entity.UserEntity;
import cn.tedu.store.entity.UserVisitLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程访问user-service服务
 */
@FeignClient(name = "user-service")
public interface UserServiceClient {
    @PostMapping("/users/queryByUid")
    public UserEntity queryByUid(@RequestBody Integer uid);
}
